﻿using _5E.Infrastructure.Querying;
using WholesaleOnline.DataContract.Messaging;
using WholesaleOnline.Model;

namespace WholesaleOnline.Service.Implementations
{
    public class HomePageServiceQueryGenerator
    {
        public static Query BuildQueryBy(GetBuyerRequest request)
        {
            Query query = new Query();
            query.Add(Criterion.Create<WoBuyer>(b => b.Id, CriteriaOperator.Eq, request.LoginId));
            return query;
        }
    }
}
